﻿using System;
using System.Windows.Forms;
using MG_WIN.Windows;
using MG_WIN.Util;

namespace MG_WIN
{
    public partial class StartWin : BaseWin
    {
        public StartWin()
        {
            Form loginWin = new LoginWin();
            var result = loginWin.ShowDialog();
            if (result != System.Windows.Forms.DialogResult.OK)
                System.Environment.Exit(0);
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            BLL.Users users = new BLL.Users();
            MG_WIN.Model.Users user = users.GetModel(2);
            LogUtil.writeLog(user.us_id + "  " + user.us_login_id+"  "+user.us_color);
        }
    }
}
